Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary libevent timers in the MessagePump #4258

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

jellefoks
Copy link
Member

@jellefoks jellefoks commented Oct 15, 2024

Avoid unnecessarily adding libevent timers in the MessagePump.

This reduces CPU utilization during a download
bandwidth test by ~11%.

b/205134049

This removes an obsolete Starboardization that
introduced evtimeval that can cause an overflow
on 32-bit platforms with a 64-bit time_t.
Remove the |waiting_| from SbSocketWaiterPrivate
that was only read DCHECK() but modified twice for
each wait.
@jellefoks jellefoks marked this pull request as ready for review October 15, 2024 01:22
Copy link
Member

@kaidokert kaidokert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if tests pass. Would be good to get it into nightly and see if YTS in the lab stays stable.

@jellefoks jellefoks enabled auto-merge (squash) October 15, 2024 02:06
Avoid unnecessarily adding libevent timers.

This reduces CPU utilization during a download
bandwidth test by ~11%.
@jellefoks jellefoks merged commit fa54b2e into youtube:25.lts.1+ Oct 15, 2024
338 of 345 checks passed
@jellefoks
Copy link
Member Author

FWIW: b/205134049

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants